home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 22 / Cream of the Crop 22.iso / windows / wdj1096.zip / OTALA.ZIP / SAMPAPP.CPP < prev    next >
C/C++ Source or Header  |  1996-06-29  |  560b  |  26 lines

  1. #include <windows.h>
  2. #include "ewv.h"
  3.  
  4. int PASCAL WinMain(HINSTANCE hInst,
  5.   HINSTANCE /*hPrevInst*/, LPSTR /*pszCmdLine*/,
  6.   int /*nCmdShow*/)
  7. {
  8.     if (IsWin95())
  9.     {
  10.         if (GetModuleUsage(hInst) <= 1)
  11.             SetModuleExpWinVer(hInst, 0x0400);
  12.         SetTaskExpWinVer(GetCurrentTask(), 0x0400);
  13.     }
  14.  
  15.     // do something else...
  16.  
  17.     if (IsWin95())
  18.     {
  19.         if (GetModuleUsage(hInst) <= 1)
  20.             SetModuleExpWinVer(hInst, 0x030a);
  21.         SetTaskExpWinVer(GetCurrentTask(), 0x030a);
  22.     }
  23.     return (0);
  24. }
  25.  
  26.